# 声明一个 cmake 工程
project( demo_yaml )

# include_directories(
#     ${PROJECT_SOURCE_DIR}/3rdlib/libyamlcpp/include/
# )

# add .h文件
file( GLOB header_list *.h )
# add .cpp文件
file( GLOB source_list *.cpp )

# link_directories(
#   ${PROJECT_SOURCE_DIR}/3rdlib/libyamlcpp/lib
# )
#==============
# generat bin  
#==============
add_executable(${PROJECT_NAME} ${header_list} ${source_list} )
target_link_libraries(${PROJECT_NAME}
  yaml-cpp
)